Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server


ROWID function

The ROWID data type provides a unique record identifier that is compatible across OpenEdge and MS SQL Server databases. Applications that use the ROWID function behave in the same way whether they access records in an OpenEdge databases or in an MSS data source. The ROWID function is more consistent than RECID across data sources, since RECID cannot guarantee uniqueness. Progress Software Corporation recommends that you replace the RECID function with ROWID in existing applications.

The DataServer supports the ROWID function for MSS data source tables that have a unique index. The DataServer utilities use an index that meets this criterion to provide values for the ROWID function. If you build your schema holder using the Progress-to-MSS utility and you select to create the RECID field, it is automatically designated as the ROWID index. However, if you do not create the RECID field, you can select a unique index to support ROWID. See the "Defining the ROWID" section for instructions.

The ROWID value in an MSS data source differs from the ROWID value in an OpenEdge database if you use the unique index method in the following ways:

Follow these guidelines when using ROWID in applications that you want to deploy across multiple OpenEdge databases and/or MSS data sources:

Refresh the ROWID value after you undo a DELETE. The ROWID value might be different after the record is recreated.

For a complete description of the ROWID function, see its reference entry in OpenEdge Development: Progress 4GL Reference .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095